package com.Unit_training;
import java.util.Scanner;

public class Task1 {
    public static void main(String[] args){
        String Name;
        int Page;
        //文档
        Scanner scanner = new Scanner(System.in);
        Document d = new Document("Unit_training");
        d.printInfo();

        //书
        System.out.print("请输入书的名称：");
        scanner = new Scanner(System.in);
        Name = scanner.next();
        System.out.println("书的名字为："+Name);
        System.out.print("请输入书的页数：");
        scanner = new Scanner(System.in);
        Page = scanner.nextInt();
        System.out.println("书的页数为："+Page);
    }
}
